<?php

use Drupal\shusy_promote\Entity\ShusyPromote;

function shusy_promote_shusy_promote_add_page() {
  $e = new ShusyPromote();
  module_load_include('inc', 'shusy_promote', 'shusy_promote.forms');
  return drupal_get_form('shusy_promote_shusy_promote_entity_form', $e, 'add');
}

function shusy_promote_shusy_promote_view_page(ShusyPromote $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_promote_shusy_promote_edit_page(ShusyPromote $e) {
  module_load_include('inc', 'shusy_promote', 'shusy_promote.forms');
  return drupal_get_form('shusy_promote_shusy_promote_entity_form', $e, 'edit');
}

function shusy_promote_shusy_promote_delete_page(ShusyPromote $e) {
  module_load_include('inc', 'shusy_promote', 'shusy_promote.forms');
  return drupal_get_form('shusy_promote_shusy_promote_delete_form', $e);
}

function shusy_promote_clear_page() {
  module_load_include('inc', 'shusy_promote', 'shusy_promote.forms');
  return drupal_get_form('shusy_promote_clear_form');
}
